package com.upup;

import com.blade.Blade;

/**
 * @author : zhiye
 * @description :app start
 */
public class Application {
    public static void main(String[] args) {
        Blade.of()
                .get("/",ctx ->ctx.text("dagg"))
                .use(s ->{
                    s.response().header("Access-Control-Allow-Origin", "*")
                            .header("Access-Control-Allow-Headers", "X-Requested-With,Content-Type")
                            .header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS");
                    return true;
                })
                .start(Application.class, args);
    }
}
